package com.hzyl.famousreader.viewmodel;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.blankj.utilcode.util.SPUtils;
import com.hzyl.famousreader.Constant;

public class MainViewModel extends ViewModel {

  public MutableLiveData<Integer> fragmentIndicator;

  public MutableLiveData<Integer> themeColor;

  public MainViewModel() {
    fragmentIndicator = new MutableLiveData<>();
    fragmentIndicator.setValue(0);

    themeColor = new MutableLiveData<>();
    themeColor.setValue(SPUtils.getInstance().getInt(Constant.SP_THEME_COLOR, -16714876));
  }
}
